/**
 * @作者 faner
 * @创建时间 2021/1/20 14:57
 */
package com.faner.fast.upms.domain.dto;

import com.faner.fast.constant.enums.DictTypeEnum;
import com.faner.fast.validator.EnumValue;
import com.faner.fast.validator.EqualField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@ApiModel(value = "密码变更")
@Data
@NoArgsConstructor
public class ChangePasswordDTO extends BasicPasswordDTO{

    @EnumValue(target = DictTypeEnum.class, enumMethod = "getDescription")
    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "{password.old.not-blank}")
    private String oldPassword;

}